<html>
<head>
	<title>DEMO TEST</title>
	<script type="text/javascript">

		function fill(val)
		{
			var txt=document.getElementById('txtinput');
			txt.value=val;
			alert(val);
		}

		function native()
		{
			var txt=document.getElementById('txtinput');
			alert(window.ntv.tost(txt.value));
		}
	</script>

	<style type="text/css">

body{
	font-size: 20px;
}
	</style>
</head>
<body>
	<input type="text" id="txtinput" /><br />
	<button onclick="native()">CALL JAVA NATIVE</button>
</body>